<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>navistore.backend.restkit.util.oauth2.Server : API documentation</title>
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
    <link href="apidocs.css" type="text/css" rel="stylesheet" />
    
    
  </head>
  <body>
    <h1 class="class">n.b.r.u.o.Server(<span title="object">object</span>) : class documentation</h1>
    <p>
      <span id="part">Part of <a href="navistore.html">navistore</a>.<a href="navistore.backend.html">backend</a>.<a href="navistore.backend.restkit.html">restkit</a>.<a href="navistore.backend.restkit.util.html">util</a>.<a href="navistore.backend.restkit.util.oauth2.html">oauth2</a></span>
      
      <a href="classIndex.html#navistore.backend.restkit.util.oauth2.Server">View In Hierarchy</a>
    </p>
    <div>
      
    </div>
    <div>A skeletal implementation of a service provider, providing protected 
resources to requests from authorized consumers.</p>
<p>This class implements the logic to check requests for authorization. You
can use it with your web server or web framework to protect certain 
resources with OAuth.<table class="fieldTable"></table></div>

    
    
    <div id="splitTables">
      <table class="children sortable" id="id115">
  
  
<tr class="method">
    
    
    <td>Method</td>
    <td><a href="navistore.backend.restkit.util.oauth2.Server.html#__init__">__init__</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="navistore.backend.restkit.util.oauth2.Server.html#add_signature_method">add_signature_method</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="navistore.backend.restkit.util.oauth2.Server.html#verify_request">verify_request</a></td>
    <td><span>Verifies an api call and checks all the parameters.</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="navistore.backend.restkit.util.oauth2.Server.html#build_authenticate_header">build_authenticate_header</a></td>
    <td><span>Optional support for the authenticate header.</span></td>
  </tr><tr class="method private">
    
    
    <td>Method</td>
    <td><a href="navistore.backend.restkit.util.oauth2.Server.html#_get_version">_get_version</a></td>
    <td><span>Verify the correct version request for this server.</span></td>
  </tr><tr class="method private">
    
    
    <td>Method</td>
    <td><a href="navistore.backend.restkit.util.oauth2.Server.html#_get_signature_method">_get_signature_method</a></td>
    <td><span>Figure out the signature with some defaults.</span></td>
  </tr><tr class="method private">
    
    
    <td>Method</td>
    <td><a href="navistore.backend.restkit.util.oauth2.Server.html#_get_verifier">_get_verifier</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method private">
    
    
    <td>Method</td>
    <td><a href="navistore.backend.restkit.util.oauth2.Server.html#_check_signature">_check_signature</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method private">
    
    
    <td>Method</td>
    <td><a href="navistore.backend.restkit.util.oauth2.Server.html#_check_timestamp">_check_timestamp</a></td>
    <td><span>Verify that timestamp is recentish.</span></td>
  </tr>
  
</table>
      
      
    </div>
    
    
    

    <div class="function">
  <a name="navistore.backend.restkit.util.oauth2.Server.__init__">
    
  </a>
  <a name="__init__">
    
  </a>
  <div class="functionHeader">
    
    def
    __init__(self, signature_methods=None):
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="function">
  <a name="navistore.backend.restkit.util.oauth2.Server.add_signature_method">
    
  </a>
  <a name="add_signature_method">
    
  </a>
  <div class="functionHeader">
    
    def
    add_signature_method(self, signature_method):
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="function">
  <a name="navistore.backend.restkit.util.oauth2.Server.verify_request">
    
  </a>
  <a name="verify_request">
    
  </a>
  <div class="functionHeader">
    
    def
    verify_request(self, request, consumer, token):
    
  </div>
  <div class="functionBody">
    
    <div>Verifies an api call and checks all the parameters.<table class="fieldTable"></table></div>
  </div>
</div><div class="function">
  <a name="navistore.backend.restkit.util.oauth2.Server.build_authenticate_header">
    
  </a>
  <a name="build_authenticate_header">
    
  </a>
  <div class="functionHeader">
    
    def
    build_authenticate_header(self, realm=''):
    
  </div>
  <div class="functionBody">
    
    <div>Optional support for the authenticate header.<table class="fieldTable"></table></div>
  </div>
</div><div class="function">
  <a name="navistore.backend.restkit.util.oauth2.Server._get_version">
    
  </a>
  <a name="_get_version">
    
  </a>
  <div class="functionHeader">
    
    def
    _get_version(self, request):
    
  </div>
  <div class="functionBody">
    
    <div>Verify the correct version request for this server.<table class="fieldTable"></table></div>
  </div>
</div><div class="function">
  <a name="navistore.backend.restkit.util.oauth2.Server._get_signature_method">
    
  </a>
  <a name="_get_signature_method">
    
  </a>
  <div class="functionHeader">
    
    def
    _get_signature_method(self, request):
    
  </div>
  <div class="functionBody">
    
    <div>Figure out the signature with some defaults.<table class="fieldTable"></table></div>
  </div>
</div><div class="function">
  <a name="navistore.backend.restkit.util.oauth2.Server._get_verifier">
    
  </a>
  <a name="_get_verifier">
    
  </a>
  <div class="functionHeader">
    
    def
    _get_verifier(self, request):
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="function">
  <a name="navistore.backend.restkit.util.oauth2.Server._check_signature">
    
  </a>
  <a name="_check_signature">
    
  </a>
  <div class="functionHeader">
    
    def
    _check_signature(self, request, consumer, token):
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="function">
  <a name="navistore.backend.restkit.util.oauth2.Server._check_timestamp">
    
  </a>
  <a name="_check_timestamp">
    
  </a>
  <div class="functionHeader">
    
    def
    _check_timestamp(self, timestamp):
    
  </div>
  <div class="functionBody">
    
    <div>Verify that timestamp is recentish.<table class="fieldTable"></table></div>
  </div>
</div>
    <address>
      <a href="index.html">API Documentation</a> for navistore, generated by <a href="http://codespeak.net/~mwh/pydoctor/">pydoctor</a> at 2010-11-13 15:44:55.
    </address>
  </body>
</html>